import os

# 项目框架路径设置
base_dir = os.path.dirname(os.path.abspath(__file__))

# 测试数据路径
testdates_path = os.path.join(base_dir, "testdatas", "login_cases.xlsx")

# 测试用例路径
testcases_path = os.path.join(base_dir, "testcases")

# 日志输出路径
output_log_path = os.path.join(base_dir, "outputs", "logs", "mylog.log")

# 报告输出路径
output_report_path = os.path.join(base_dir, "outputs", "reports")

# ==== 日志文件配置 ======
rotation = "100 MB"  # 日志文件大小
retention = 10  # 保留天数

# ==== 上传图片 ====
# 上传图片路径
upload_img_dir = os.path.join(base_dir, "upload_img")
upload_imgs = []
for img_name in os.listdir(upload_img_dir):
    # (文件名，文件完整路径)
    upload_imgs.append((img_name, os.path.join(upload_img_dir, img_name), img_name.split(".")[1]))

# ==== 数据库配置 ====
sql_settings = {
    "host": "47.113.180.81",
    "user": "lemon",
    "password": "lemon123",
    "database": "yami_shops",
    "port": 3306
}
